# -*- coding:utf-8 -*-
"""
manager URL Configuration
"""
from django.conf.urls import url, include
from django.contrib import admin
from . import views

urlpatterns = [
    url(r'^$', views.index, name='home'),
    # 用户登录
    url(r'login/$', views.login, name='login'),
    url(r'logout/$', views.logout, name='logout'),
    # 报表统计
    url(r'report/(?P<id>(\d+))/$', views.report, name='report'),
    url(r'report_income/$', views.report_income, name='report_income'),
    url(r'report_flow/$', views.report_flow, name='report_flow'),
    url(r'export/flow/$', views.export_flow, name='export_flow'),
    url(r'export/income/$', views.export_income, name='export_income'),

    # 业务流水
    url(r'events/$', views.events, name='events_list'),
    url(r'histroy_list/$', views.histroy_list, name='histroy_list'),
    url(r'export_histroy/$', views.export_events, name='export_histroy'),

    url(r'events_vip/$', views.vipevents, name='vipevents_list'),
    url(r'histroy_list_vips/$', views.viphistroy_list, name='viphistroy_list'),
    url(r'histroy_vip_export/$', views.export_vipevents, name='export_viphistroy'),

    # API 接口
    url(r'vipinparking$', views.vipin_parking, name='vipinparking'),  # 入库记录
    url(r'vipoutparking$', views.vipout_parking, name='vipoutparking'),  # 出库记录

    url(r'inparking$', views.in_parking_list, name='inparking'),  # 入库记录
    url(r'outparking$', views.out_parking_list, name='outparking'),  # 出库记录
    url(r'spot$', views.payment_spot, name='outparking'),  # 付款记录
    url(r'result_error$', views.result_error_list, name='result_error'),  # 找未抵消的车牌，即有入库图片的
    url(r'makit$', views.makit, name='makit'),  # 去匹配车牌
    url(r'startPYQT$', views.qtstart_msg, name='startPYQT'),  # PYQT启动时显示的信息
    url(r'berthmsg$', views.berth_msg, name='berthmsg'),        #停车场当前泊位信息

    url(r'auto$', views.auto_parkingnum, name='auto'),      #自动添加泊位编号等信息

]

